// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_BPT_DRAW_BLUEPRINT_CHANGES
// * CreateDate    : 2012/3/24 10:23:15
// * Creater       : CodeSmith
// * LastChangeDate: 2012/3/24 10:23:15
// * LastChanger   : 2012/3/24 10:23:15
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
	[Serializable]
	public partial class BptDrawBlueprintChangesEntity : EntityBase
    {
        public BptDrawBlueprintChangesTable TableSchema
        {
            get
            {
                return BptDrawBlueprintChangesTable.Current;
            }
		}
		
		public BptDrawBlueprintChangesEntity()
        {

        }
		
		public BptDrawBlueprintChangesEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.DrawChangesId = Convert.ToString(CommonFunctions.ToObject(dr["DRAW_CHANGES_ID"]));
            this.DrawChangesCode = Convert.ToString(CommonFunctions.ToObject(dr["DRAW_CHANGES_CODE"]));
			this.ProdApplicationItemId = Convert.ToString(CommonFunctions.ToObject(dr["PROD_APPLICATION_ITEM_ID"]));
			this.SponsorPerson = Convert.ToString(CommonFunctions.ToObject(dr["SPONSOR_PERSON"]));
			this.SponsorDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["SPONSOR_DATE"]));
			this.RecivePerson = Convert.ToString(CommonFunctions.ToObject(dr["RECIVE_PERSON"]));
			this.ReciveDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["RECIVE_DATE"]));
			this.LastmodifyBy = Convert.ToString(CommonFunctions.ToObject(dr["LASTMODIFY_BY"]));
            this.LastmodifyDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["LASTMODIFY_DATE"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
			this.Remarks = Convert.ToString(CommonFunctions.ToObject(dr["REMARKS"]));
            this.ProdOrderId = Convert.ToString(CommonFunctions.ToObject(dr["PLAN_ORDER_ID"]));
        }
		
		public BptDrawBlueprintChangesEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.DrawChangesId = Convert.ToString(CommonFunctions.ToObject(dr["DRAW_CHANGES_ID"]));
            this.DrawChangesCode = Convert.ToString(CommonFunctions.ToObject(dr["DRAW_CHANGES_CODE"]));
			this.ProdApplicationItemId = Convert.ToString(CommonFunctions.ToObject(dr["PROD_APPLICATION_ITEM_ID"]));
			this.SponsorPerson = Convert.ToString(CommonFunctions.ToObject(dr["SPONSOR_PERSON"]));
			this.SponsorDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["SPONSOR_DATE"]));
			this.RecivePerson = Convert.ToString(CommonFunctions.ToObject(dr["RECIVE_PERSON"]));
			this.ReciveDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["RECIVE_DATE"]));
			this.LastmodifyBy = Convert.ToString(CommonFunctions.ToObject(dr["LASTMODIFY_BY"]));
            this.LastmodifyDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["LASTMODIFY_DATE"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
			this.Remarks = Convert.ToString(CommonFunctions.ToObject(dr["REMARKS"]));
            this.ProdOrderId = Convert.ToString(CommonFunctions.ToObject(dr["PLAN_ORDER_ID"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return BptDrawBlueprintChangesTable.Current;
            }
        }
		
		#region Perporty List
        public string DrawChangesId
        {
            get { return Convert.ToString(GetData(BptDrawBlueprintChangesTable.C_DRAW_CHANGES_ID)); }
            set { SetData(BptDrawBlueprintChangesTable.C_DRAW_CHANGES_ID, value); }
        }

        public string DrawChangesCode
        {
            get { return Convert.ToString(GetData(BptDrawBlueprintChangesTable.C_DRAW_CHANGES_CODE)); }
            set { SetData(BptDrawBlueprintChangesTable.C_DRAW_CHANGES_CODE, value); }
        }
        public string ProdApplicationItemId
        {
            get { return Convert.ToString(GetData(BptDrawBlueprintChangesTable.C_PROD_APPLICATION_ITEM_ID)); }
            set { SetData(BptDrawBlueprintChangesTable.C_PROD_APPLICATION_ITEM_ID, value); }
        }

        public string ProdOrderId
        {
            get { return Convert.ToString(GetData(BptDrawBlueprintChangesTable.C_PLAN_ORDER_ID)); }
            set { SetData(BptDrawBlueprintChangesTable.C_PLAN_ORDER_ID, value); }
        }
        public string SponsorPerson
        {
            get { return Convert.ToString(GetData(BptDrawBlueprintChangesTable.C_SPONSOR_PERSON)); }
            set { SetData(BptDrawBlueprintChangesTable.C_SPONSOR_PERSON, value); }
        }
		
        public DateTime SponsorDate
        {
            get { return Convert.ToDateTime(GetData(BptDrawBlueprintChangesTable.C_SPONSOR_DATE)); }
            set { SetData(BptDrawBlueprintChangesTable.C_SPONSOR_DATE, value); }
        }
		
        public string RecivePerson
        {
            get { return Convert.ToString(GetData(BptDrawBlueprintChangesTable.C_RECIVE_PERSON)); }
            set { SetData(BptDrawBlueprintChangesTable.C_RECIVE_PERSON, value); }
        }
		
        public DateTime ReciveDate
        {
            get { return Convert.ToDateTime(GetData(BptDrawBlueprintChangesTable.C_RECIVE_DATE)); }
            set { SetData(BptDrawBlueprintChangesTable.C_RECIVE_DATE, value); }
        }
		
        public string LastmodifyBy
        {
            get { return Convert.ToString(GetData(BptDrawBlueprintChangesTable.C_LASTMODIFY_BY)); }
            set { SetData(BptDrawBlueprintChangesTable.C_LASTMODIFY_BY, value); }
        }

        public DateTime LastmodifyDate
        {
            get { return Convert.ToDateTime(GetData(BptDrawBlueprintChangesTable.C_LASTMODIFY_DATE)); }
            set { SetData(BptDrawBlueprintChangesTable.C_LASTMODIFY_DATE, value); }
        }
		
        public string Status
        {
            get { return Convert.ToString(GetData(BptDrawBlueprintChangesTable.C_STATUS)); }
            set { SetData(BptDrawBlueprintChangesTable.C_STATUS, value); }
        }
		
        public string Remarks
        {
            get { return Convert.ToString(GetData(BptDrawBlueprintChangesTable.C_REMARKS)); }
            set { SetData(BptDrawBlueprintChangesTable.C_REMARKS, value); }
        }
		
		#endregion
	}
	
	
}	

